//
//  DogModel.m
//  ReviewDemo
//
//  Created by 苏沫离 on 2018/3/21.
//  Copyright © 2018年 long. All rights reserved.
//

#import "DogModel.h"

@implementation DogModel

- (BOOL)isEqual:(DogModel *)object
{
    if (self == object) {
        return YES;
    }
    
    if (![object isKindOfClass:[DogModel class]]) {
        return NO;
    }
    
    if (!object) {
        return NO;
    }
    
    BOOL haveEqualNames = (!self.name && !object.name) || [self.name isEqualToString:object.name];
    
    return haveEqualNames;
    
}


@end
